package net.bungaeting.client.android.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;

public class BungaetingActivity extends TabActivity {
	
	TabHost mTab;
    /** Called when the activity is first created. */
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TabHost mTab = getTabHost();
        
        LayoutInflater inflater = LayoutInflater.from(this);
        inflater.inflate(R.layout.tap, mTab.getTabContentView(), true);
        
        mTab.addTab(mTab.newTabSpec("tag")
        		.setIndicator("번개확인")
        		.setContent(new Intent(this,ListActivity.class)));
        mTab.addTab(mTab.newTabSpec("tag")
        		.setIndicator("그룹관리")
        		.setContent(new Intent(this,GroupActivity.class)));
        mTab.addTab(mTab.newTabSpec("tag")
        		.setIndicator("번개추가")
        		.setContent(new Intent(this,MapActivity.class)));
        mTab.addTab(mTab.newTabSpec("tag")
        		.setIndicator("테스트")
        		.setContent(new Intent(this,TestActivity.class)));
	}
        public boolean onCreateOptionsMenu(Menu menu){
        	super.onCreateOptionsMenu(menu);
        	MenuItem item = menu.add(0,1,0,"추가");
        	menu.add(0,2,0,"삭제");
        	menu.add(0,3,0,"편집");
        	
        	return true;

        }
       
    }
